package com.itheima.多态.多态入门_01;

public class Animal {
    public void eat(){
        System.out.println("动物吃东西");
    }
}
class Cat extends Animal{
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }
}
class Dog extends Animal{
    @Override
    public void eat() {
        System.out.println("狗吃骨头");
    }
}